package top.lt.lt_ssm.bean;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class product {

	private Integer pid;

    private String pname;

    private Double price;

    private String factoryMerchants;

    private Date dateOfProduction;

    private Date expirationDate;

    private Integer ptypeId;

    private String isShelf;

    private Date shelfTime;

    private Date downTime;

    private String tag;

    private String describes;

    private Integer stoId;

    private String smallImg;

    private String bigImg;

   
	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getFactoryMerchants() {
		return factoryMerchants;
	}

	public void setFactoryMerchants(String factoryMerchants) {
		this.factoryMerchants = factoryMerchants;
	}
	
	 @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
	public Date getDateOfProduction() {
		return dateOfProduction;
	}

	 @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
	public void setDateOfProduction(Date dateOfProduction) {
		this.dateOfProduction=dateOfProduction;
	}
	 
	 @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
	public Date getExpirationDate() {
		return expirationDate;
	}

	 @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
	public void setExpirationDate(Date expirationDate) {
		this.expirationDate = expirationDate;
	}

	public Integer getPtypeId() {
		return ptypeId;
	}

	public void setPtypeId(Integer ptypeId) {
		this.ptypeId = ptypeId;
	}

	public String getIsShelf() {
		return isShelf;
	}

	public void setIsShelf(String isShelf) {
		this.isShelf = isShelf;
	}

	 @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
	public Date getShelfTime() {
		return shelfTime;
	}

	 @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
	public void setShelfTime(Date shelfTime) {
		this.shelfTime = shelfTime;
	}

	 @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
	public Date getDownTime() {
		return downTime;
	}

	 @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
	public void setDownTime(Date downTime) {
		this.downTime = downTime;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public String getDescribes() {
		return describes;
	}

	public void setDescribes(String describes) {
		this.describes = describes;
	}

	public Integer getStoId() {
		return stoId;
	}

	public void setStoId(Integer stoId) {
		this.stoId = stoId;
	}

	public String getSmallImg() {
		return smallImg;
	}

	public void setSmallImg(String smallImg) {
		this.smallImg = smallImg;
	}

	public String getBigImg() {
		return bigImg;
	}

	public void setBigImg(String bigImg) {
		this.bigImg = bigImg;
	}

	@Override
	public String toString() {
		return "product [pid=" + pid + ", pname=" + pname + ", price=" + price + ", factoryMerchants="
				+ factoryMerchants + ", dateOfProduction=" + dateOfProduction + ", expirationDate=" + expirationDate
				+ ", ptypeId=" + ptypeId + ", isShelf=" + isShelf + ", shelfTime=" + shelfTime + ", downTime="
				+ downTime + ", tag=" + tag + ", describes=" + describes + ", stoId=" + stoId + ", smallImg=" + smallImg
				+ ", bigImg=" + bigImg + "]";
	}
    
}